package com.ktjy.springredis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @return 13141
 * 2025/7/17
 * 09:32
 */
@Data
@TableName("employee")
public class Employee {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;
    @TableField("name")
    private String name;
    @TableField("email")
    private String email;
    @TableField("age")
    private Integer age;

    // 构造函数
    public Employee() {
    }

    public Employee(Long id, String name, String email, Integer age) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.age = age;
    }

    // 属性封装
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
